﻿using Application.Outstock_dService;
using Domain.Entity.Out;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;

namespace WMSManage.Controllers
{
    [Route("api/[controller]/[action]")]
    [ApiController]
    [Authorize]//需要鉴权
    public class Outstock_dController : ControllerBase
    {
        private readonly IOutstock_dService outstock_DService;

        public Outstock_dController(IOutstock_dService outstock_DService)
        {
            this.outstock_DService = outstock_DService;
        }



        /// <summary>
        /// 根据出库单id查询明细
        /// </summary>
        /// <param name="outstockid"></param>
        /// <returns></returns>
        [HttpGet]
        public async Task<List<Outstock_d>> GetOutstock_Ds(int outstockid)
        {
            return await outstock_DService.GetOutstock_Ds(outstockid);
        }
    }
}
